package net.oschina.jhssm.common.service;

import java.util.List;

/**
 * Created by ZhaoJinBing on 2017/6/28.
 */
public interface IBaseService<T> {
    List<T> select(T t);

    List<T> selectAll();

    T selectByPrimaryKey(Object key);

    int selectCount(T t);

    T selectOne(T t);

    int insert(T t);

    int insertSelective(T t);

    int updateByPrimaryKey(T t);

    int updateByPrimaryKeySelective(T t);

    int delete(T t);

    int deleteByPrimaryKey(Object key);

    boolean existsWithPrimaryKey(Object key);
}
